package com.luojing.springbootsecurity.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author luojing
 * @create 2018/10/16 11:03 AM
 **/
@Controller
public class CommonController {

  @RequestMapping("login")
  public String login(){
    return "login";
  }

  @RequestMapping("/user/login")
  public String login(String username,String password){
    return "login";
  }

  @RequestMapping("/admin/msg")
  @ResponseBody
  public String msg(){
    return "admin msg";
  }

  @RequestMapping("index")
  public String index(){
    return "index";
  }
}
